package com.dingpeikeji.quickdeer.modules.rentprod.entity;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.Office;
import com.dingpeikeji.quickdeer.modules.rentproduct.entity.TCargotype;

/**
 * 整车调价Entity
 * @author mash
 * @version 2017-03-16
 */
public class TRentprod extends DataEntity<TRentprod> {
	
	private static final long serialVersionUID = 1L;
	private String rentprodid;		// rentprodid
	private TCargotype	cartype;
	private String custtype;		// custtype
	private Office	office;
	
	public TRentprod() {
		super();
	}

	public TRentprod(String id){
		super(id);
	}

	public String getRentprodid() {
		return rentprodid;
	}

	public void setRentprodid(String rentprodid) {
		this.rentprodid = rentprodid;
	}
	@Length(min=1, max=1, message="custtype长度必须介于 1 和 1 之间")
	public String getCusttype() {
		return custtype;
	}

	public void setCusttype(String custtype) {
		this.custtype = custtype;
	}

	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}

	public TCargotype getCartype() {
		return cartype;
	}

	public void setCartype(TCargotype cartype) {
		this.cartype = cartype;
	}
	
}